package com.hm.pojo.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
 * @program: qy163-springboot04
 * @description:
 * @author: 胡萌
 * @create: 2023-04-12 20:20
 **/
@Data
@AllArgsConstructor
@ApiModel(value = "学生实体类")
public class Student implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "学生编号")
    private Integer sid;

    /**
     *
     */
    @ApiModelProperty(value = "学生姓名")
    private String sname;

    /**
     *
     */
    @ApiModelProperty(value = "学生年龄")
    private Integer age;

    /**
     *
     */
    @ApiModelProperty(value = "班级编号")
    private Integer cid;

    @TableField(exist = false)
    private Class aaa;

    public Student() {
    }

    public Student(Integer sid) {
        this.sid = sid;
    }

    public Student(String sname, Integer age, Integer cid) {
        this.sname = sname;
        this.age = age;
        this.cid = cid;
    }

    private static final long serialVersionUID = 1L;
}